home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15130 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: gecm.com!usenet
  2. From: Richard Paul Hanson <richard.hanson@gecm.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: COLLEGE PROFESSORS! # 2/2
  5. Date: 17 Apr 1996 11:53:28 GMT
  6. Organization: GEC Marconi Avionics Limited
  7. Message-ID: <4l2m3o$oa6@gcsin3.geccs.gecm.com>
  8. References: <8BEC555.02C70031C4.uuout@sourcebbs.com>
  9. NNTP-Posting-Host: unknown77147.rochstr.gmav.gecm.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2 (Windows; I; 16bit)
  14.  
  15. When I was at college, it was considered good engineering to have only one
  16. exit point for a routine - multiple exit points in a routine tend to make it
  17. harder to read. However, the way the 'IF' constructs are written I agree are
  18. wasteful: perhaps each successive 'IF' construct should be in the 'ELSE'
  19. clause of the preceding 'IF', as in your first example.
  20.  
  21. By the way, neither of your two examples will work because you have not set
  22. StatusSwitch to 'BAD' in your 'IF' statements!
  23.  
  24. Rich
  25.  
  26. ------------------------------------------------------------------------------
  27.  R. P. Hanson, Software Engineer and part time musician
  28.  GEC Marconi Avionics Limited, Airport Works, Rochester, Kent, ENGLAND
  29. ------------------------------------------------------------------------------
  30.  http://www.lookup.com/Homepages/78185/home.html
  31. ------------------------------------------------------------------------------
  32.  
  33.  
  34.